import request from '@/config/axios'

// 查询列表
export const getpopulationDensityPage = async (params: PageParam) => {
  return await request.get({ url: '/regionalSettings/list', params })
}

// 查询详情
export const getPopulationDensityDetail = async (id) => {
  return await request.get({ url: '/regionalSettings/getById?id=' + id })
}

// 新增/修改
export const createCopyright = async (data: any) => {
  const url = data.type == 1?'/regionalSettings/saveOrUpdate':'/regionalSettings/saveOrUpdate'
  return await request.post({ url: url, data })
}

// 删除
export const deletePopulationDensity = async (id: number) => {
  return await request.get({ url: '/regionalSettings/delete?id=' + id })
}
